package com.test.dao;

import java.util.List;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.test.bean.User;

public class UserDaoImpl extends HibernateDaoSupport implements UserDao {

	public void save(User u) {
		this.getHibernateTemplate().save(u);
	}

	public List findAll() {
		return this.getHibernateTemplate().find("from User");

	}

}
